// default package
package com.ccp.web.database.dao;

import java.util.List;

import com.ccp.web.database.entity.User;

/**
 	* A data access object (DAO) providing persistence and search support for User entities.
 			* Transaction control of the save(), update() and delete() operations 
		can directly support Spring container-managed transactions or they can be augmented	to handle user-managed Spring transactions. 
		Each of these methods provides additional information for how to configure it for the desired type of transaction control. 	
	 * @see .User
  * @author MyEclipse Persistence Tools 
 */

public interface IUserDao {
	public void save(User transientInstance);
    
	public void delete(User persistentInstance);
    
    public User findById( java.lang.Short id);
    
    public List<User> findByExample(User instance);
    
    public List findByProperty(String propertyName, Object value);

	public List<User> findByAccount(Object account);
	
	public List<User> findByPassword(Object password);
	
	public List<User> findByUsername(Object username);
	
	public List<User> findByAge(Object age);
	
	public List findAll();
	
    public User merge(User detachedInstance);

    public void attachDirty(User instance);
    
    public void attachClean(User instance);
    
    public boolean verifyAccountAndPassword(String uName, String pWord);
}